import request from '@/utils/request'

// 查询城市更新项目组-库存商品列表
export function listRenewal(query) {
  return request({
    url: '/teamTable/renewal/list',
    method: 'get',
    params: query
  })
}

// 查询城市更新项目组-库存商品详细
export function getRenewal(inventoryId) {
  return request({
    url: '/teamTable/renewal/' + inventoryId,
    method: 'get'
  })
}

// 新增城市更新项目组-库存商品

export function addRenewal(data) {
  return request({
    url: '/teamTable/renewal',
    method: 'post',
    data: data
  })
}

// 修改城市更新项目组-库存商品

export function updateRenewal(data) {
  return request({
    url: '/teamTable/renewal',
    method: 'put',
    data: data
  })
}

// 删除城市更新项目组-库存商品

export function delRenewal(inventoryId) {
  return request({
    url: '/teamTable/renewal/' + inventoryId,
    method: 'delete'
  })
}
